﻿package am.fp{  import flash.display.Sprite;  import flash.text.TextFormat;  import fl.controls.Label;  import fl.controls.listClasses.CellRenderer;  import fl.controls.listClasses.ListData;    /**   * Render search result into the list component.   */  public class SearchResultRenderer extends CellRenderer  {    private var m_listData: ListData;    private var m_data: Object;        public function SearchResultRenderer()    {      textField.wordWrap = true;      textField.autoSize = "left";    }    override protected function drawLayout(): void    {      textField.defaultTextFormat = new TextFormat("Arial", 10);      textField.width = this.width;      textField.htmlText = textField.text;      super.drawLayout();    }  }}